package com.wxx.maker.template.model;

import com.wxx.maker.meta.Meta;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 模型相关配置类(封装模型相关的配置)
 */
@Data
public class TemplateMakerModelConfig {

    /**
     * 模型信息集合
     */
    private List<ModelInfoConfig> models;

    /**
     * 模型组信息集合
     */
    private ModelGroupConfig modelGroupConfig;

    @Data
    @NoArgsConstructor
    public static class ModelInfoConfig{

        private String fieldName;

        private String type;

        private String description;

        private Object defaultValue;

        private String abbr;

        /**
         * 用于替换哪些文本
         */
        private String replaceText;

    }

    @Data
    public static class ModelGroupConfig{

        private String condition;

        private String groupKey;

        private String groupName;

        private String type;

        private String description;

    }

}
